package com.oba.king.businessprocess.storagemanage.outstorage;
/**
 * Title:           OutStorage
 * Description:
 * Copyright:       Copyright (c) 2010
 * Company:         King Top Limited
 * @author          Wu Liang
 * @version 1.0
 *
 * MODIFICATION HISTORY
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * Date Modified        Modified By         Comments
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * 24/05/2010           Wu Liang            Code Creation
 */
import java.util.Date;

import com.oba.base.service.BaseBo;
import com.oba.king.datalib.Customer;
import com.oba.king.datalib.productinfo.ProductInfo;
import com.oba.king.login.UserInfo;
import com.oba.king.sysmanager.Dept;

public class OutStorage extends BaseBo {
	private Long outStorageId;
	private String outStorageCode;
	private String storageId;
	private Date outDate;
	private String responMan;
	private String belegCode;
	private String outReason;
	private Double totalSum;
	private Date createDate;
	private Long auditStatus;
	private Long outStorageType;
	private String auditRemark;
	private UserInfo  auditMan;
	private UserInfo userInfo;
	private Dept department;
	private Customer customerInfo;
	private ProductInfo productInfo;
	private OutStoragePrdt outStoragePrdt;
	
	private Long orderId;//TODO 是外键，需要修复

	public Long getId() {
		return outStorageId;
	}

	public String getName() {
		return outStorageCode;
	}

	public Long getOutStorageId() {
		return outStorageId;
	}

	public void setOutStorageId(Long outStorageId) {
		this.outStorageId = outStorageId;
	}

	public String getOutStorageCode() {
		return outStorageCode;
	}

	public void setOutStorageCode(String outStorageCode) {
		this.outStorageCode = outStorageCode;
	}

	public String getStorageId() {
		return storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}

	public Date getOutDate() {
		return outDate;
	}

	public void setOutDate(Date outDate) {
		this.outDate = outDate;
	}

	public String getResponMan() {
		return responMan;
	}

	public void setResponMan(String responMan) {
		this.responMan = responMan;
	}

	public String getBelegCode() {
		return belegCode;
	}

	public void setBelegCode(String belegCode) {
		this.belegCode = belegCode;
	}

	public String getOutReason() {
		return outReason;
	}

	public void setOutReason(String outReason) {
		this.outReason = outReason;
	}

	public Double getTotalSum() {
		return totalSum;
	}

	public void setTotalSum(Double totalSum) {
		this.totalSum = totalSum;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(Long auditStatus) {
		this.auditStatus = auditStatus;
	}

	public Long getOutStorageType() {
		return outStorageType;
	}

	public void setOutStorageType(Long outStorageType) {
		this.outStorageType = outStorageType;
	}

	public String getAuditRemark() {
		return auditRemark;
	}

	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}

	public UserInfo getAuditMan() {
		return auditMan;
	}

	public void setAuditMan(UserInfo auditMan) {
		this.auditMan = auditMan;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public Dept getDepartment() {
		return department;
	}

	public void setDepartment(Dept department) {
		this.department = department;
	}

	public Customer getCustomerInfo() {
		return customerInfo;
	}

	public void setCustomerInfo(Customer customerInfo) {
		this.customerInfo = customerInfo;
	}
	
	public ProductInfo getProductInfo() {
		return productInfo;
	}

	public void setProductInfo(ProductInfo productInfo) {
		this.productInfo = productInfo;
	}
	
	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getAuditStatusStr() {
		if(auditStatus!=null&&!auditStatus.equals("")){
			if(auditStatus==1){
				return "<font color=\"red\">新增未审核</font>";
			}else if(auditStatus==2){
				return "审核通过";
			}
			else if(auditStatus==3){
				return "审核未通过";
			}
			else if(auditStatus==4){
				return "修改未审核";
			}
			else if(auditStatus==5){
				return "过期";
			}
		}
		return null;
	}

	public OutStoragePrdt getOutStoragePrdt() {
		return outStoragePrdt;
	}

	public void setOutStoragePrdt(OutStoragePrdt outStoragePrdt) {
		this.outStoragePrdt = outStoragePrdt;
	}

}
